import 'package:flutter/material.dart';
import 'package:flutter_jdk_test/pages/searches.dart';
import '../formpage.dart';
class Money extends StatefulWidget {
  Money({Key key}) : super(key: key);

  @override
  _MoneyState createState() => _MoneyState();
}

class _MoneyState extends State<Money> {
  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,

      children: [
        RaisedButton(
          child: Text('跳转到表单 页面'),
          //点击事件
          onPressed: (){
            Navigator.of(context).push(
                MaterialPageRoute(
                  ///传值
                  builder: (context)=>Formpage(title:'我是传过去的值'),
                ),
            );
          },
          color: Theme.of(context).accentColor,
        ),
      ],
    );
  }
}
